


all:SocketClientMat SocketServerMat

SocketClientMat:SocketClientMat.o SocketMatTransmissionClient.o
	g++ `pkg-config opencv --cflags` -o SocketClientMat SocketClientMat.o SocketMatTransmissionClient.o `pkg-config opencv --libs` -ljsoncpp  -std=c++11


SocketServerMat:SocketServerMat.o SocketMatTransmissionServer.o
	g++ `pkg-config opencv --cflags` -o SocketServerMat SocketServerMat.o SocketMatTransmissionServer.o `pkg-config opencv --libs` -ljsoncpp  -std=c++11


SocketServerMat.o:SocketServerMat.cpp  SocketMatTransmissionServer.h SocketMatTransmissionServer.o
	g++  -c SocketServerMat.cpp 

SocketMatTransmissionServer.o:SocketMatTransmissionServer.cpp  SocketMatTransmissionServer.h
	g++  -c SocketMatTransmissionServer.cpp



SocketClientMat.o:SocketClientMat.cpp  SocketMatTransmissionClient.h SocketMatTransmissionClient.o
	g++  -c SocketClientMat.cpp

SocketMatTransmissionClient.o:SocketMatTransmissionClient.cpp  SocketMatTransmissionClient.h
	g++  -c SocketMatTransmissionClient.cpp


.PHONY:clean

clean:
	rm *.o SocketServerMat
